<template>
  <view class="my-box">
    <my-login v-if="!userinfo"></my-login>
    <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
  import badgeMix from '@/mixins/tabbar-badge.js'
  import {mapState} from 'vuex'
  export default {
    mixins: [badgeMix],
    computed: {
      ...mapState('m_user',['token','userinfo'])
    },
    data() {
      return {
        
      };
    }
  }
</script>

<style lang="scss">
.my-box{
  background-color: white;
}
</style>
